﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="userinfo.aspx.cs" Inherits="Student_userinfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style7
        {
            width: 262px;
            text-align: right;
        }
        .style8
        {
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="margin-bottom:10px; padding:8px 0 8px 15px;"><a href="../main.aspx">桌面</a>&nbsp;&gt;&gt;&nbsp;
            <a href="UserInfo.aspx">个人信息管理</a>&nbsp;&gt;&gt;&nbsp;
                  <a href="#" style="color:red;">信息维护</a></div>
    <div class="bluebg" style="width:600px; height:680px; border-radius:10px; margin:20px auto; text-align:center;">
    <h3 style="text-align:center; color:#777777;"><b>个人信息维护</b></h3><hr />
        <asp:Panel runat="server" ID="pl_CheckPwd">
              <table style="width:350px; margin:25px auto; text-align:left">
                  <tr style="height:35px"><td colspan="2"> 请输入密码：</td></tr><tr><td>
        <asp:TextBox runat="server" Width="200px" TextMode="Password" class="form-control" ID="tb_Pwd"></asp:TextBox></td><td>
              <asp:Button runat="server"  ID="bt_confirm" 
                          OnClick="bt_confirm_Click" Text="确&nbsp;&nbsp;定" CssClass="btn01" />
                      </td> 
                      </tr> 
              </table>
            </asp:Panel>
        <asp:Panel ID="pl_StuInfo" Visible="false" runat="server">
              <table>
                  <tr>
                      <td class="style7">
                          姓名：
                      </td>
                      <td class="style8">
                          <asp:TextBox runat="server" CssClass="form-control" ID="tb_name"></asp:TextBox>
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                              ControlToValidate="tb_name" ForeColor="Red" ErrorMessage="*非空" 
                              style="font-size: small"></asp:RequiredFieldValidator>
                      </td>
                  </tr>
                  <tr>
                      <td class="style7">
                          身份证号：
                      </td>
                      <td class="style8">
                          <asp:TextBox runat="server" CssClass="form-control" ID="tb_sidfy"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                              ControlToValidate="tb_sidfy" ForeColor="Red" ErrorMessage="*非空" 
                              style="font-size: small"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                              ControlToValidate="tb_sidfy" runat="server" ErrorMessage="身份证号输入错误！" 
                              ForeColor="Red" 
                              ValidationExpression="^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$" 
                              style="font-size: small"></asp:RegularExpressionValidator>
                       
                      </td>
                  </tr>
                  <tr><td class="style7">
                     手机号
                      </td>
                      <td class="style8">
                            <asp:TextBox class="form-control" runat="server" ID="tb_phone" required></asp:TextBox>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                                ControlToValidate="tb_phone" ForeColor="Red" ErrorMessage="*非空" 
                                style="font-size: small"></asp:RequiredFieldValidator>
                             <asp:RegularExpressionValidator ID="RegularExpressionValidator3" 
                                ControlToValidate="tb_phone" runat="server" ErrorMessage="手机号输入错误！" 
                                ForeColor="Red" ValidationExpression="^[1][3578][0-9]{9}$" 
                                style="font-size: small"></asp:RegularExpressionValidator>
                    </td>
                             </tr>
                  <tr>
                      <td class="style7">
                          安全邮箱：
                      </td>
                      <td class="style8">
                          <asp:TextBox runat="server" CssClass="form-control" ID="tb_email"></asp:TextBox>  
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                              Display="Dynamic" ErrorMessage="邮箱格式不正确" ControlToValidate="tb_email" 
                              ValidationExpression="^[a-zA-Z0-9]{1,}@[a-zA-Z0-9]{1,}.(com|net|org|edu|mil|cn|cc)$" 
                              ForeColor="Red" style="font-size: small"></asp:RegularExpressionValidator>
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                              ControlToValidate="tb_email" ForeColor="Red" ErrorMessage="*非空" 
                              style="font-size: small"></asp:RequiredFieldValidator>
                      </td>
                  </tr>
                <tr><td colspan="2">
            <asp:Button runat="server" ID="bt_Submit"   OnClick="bt_Submit_Click" 
                        Text="提&nbsp;&nbsp;交" CssClass="btn01"/></td>
                </tr>
                  </table>
            </asp:Panel>
    </div>
</asp:Content>

